﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">

        function OnPageLoad() {
            var val = window.dialogArguments;
            document.getElementById("txt").value = val[0] + val[1].Name + val[1].Age;
        }

        function ReturnFun() {
            window.returnValue = document.getElementById("txt").value;
            window.close();
        }

    </script>
</head>
<body onload="OnPageLoad();">
    <input id="txt" type="text" />
    <input id="Text1" type="button" value="close" onclick="ReturnFun();" />
</body>
</html>
